<%
	if @options[:scaffold_model].is_crudable?(:pageable)
		options = {:hide_filter => true, :hide_labels => true}
	  for column in @options[:scaffold_model].scaffold_columns
			html = ""
			if column.viewable_in_list?
				header, order_class = column_header_label(@options[:scaffold_model], column, options)
	      like_html = like_field(@options[:scaffold_model], column, options)
        html << like_html
	  	  html << header
	 	  end 
%>
	<%= html %>
<%
		end
		sort_value = sort_limit(@options[:scaffold_model])
		 	if (not @paginator.nil? and (@paginator.current.next or @paginator.current.previous)) or
			  (sort_value != @options[:scaffold_model].default_per_page)
				sort_name = sort_limit_field_name(@options[:scaffold_model])
				java_form_option = @form_options.merge(sort_name => "this.value")
%>
				Show 
				<%= select_tag(sort_name, options_for_select([3, 5,10,20,30,40,50], sort_value), 
							:onchange => "javascript:Submit('#{form_filter_sort_by(@options[:scaffold_model])}', '#{url_for(java_form_option).gsub("this.value","\'+this.value+\'")}');") -%>
				rows
<%
			end
		 	if not @paginator.nil? and (@paginator.current.next or @paginator.current.previous)  
%>
				<%= bullet %>
				<%#= hidden_field_tag(:page, 1) %>
				<%= paginate_field(@options[:scaffold_model], 'Previous', @paginator.current.previous) + bullet if @paginator.current.previous %>
				<%= paginate_field(@options[:scaffold_model], 'Next', @paginator.current.next) if @paginator.current.next %>
				<%= render(:partial => 'shared/menu') %> 
<% 	
			end 
	end 
%>
